package controllers;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class ClearSessionController extends HttpServlet {

    HttpSession sessie;

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws IOException, ServletException {
        sessie = request.getSession();
        
        sessie.invalidate();
        
        String address = "/visitor_home.jsp";

        RequestDispatcher dispatcher = request.getRequestDispatcher(address);
        dispatcher.forward(request, response); //Stuurt door naar de Gebruikers index

    }
}
